﻿@model Project5.Models.SurveyModel
           
@{
    ViewBag.Title = "Rename";
}

<div class="modal fade in" id="renameSurveyModal" tabindex="-1" role="dialog"
    aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
            ×</button>
        <h3 id="myModalLabel">
            New Survey Name</h3>
    </div>
    <div class="modal-body">
    @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "renameForm" }))
    {
    @Html.ValidationSummary(true)
    <fieldset>
         <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
            @Html.HiddenFor(model => model.Originator)
        
    </fieldset>
    }
    </div>
    <div class="modal-footer">
        <input type="submit" class="btn btn-success" value="Rename" form="renameForm" />
        <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
    </div>
</div>
